import request from "@/utils/request";

// 查询PDF
export function listPdf(query) {
  return request({
    url: "/system/pdf/list",
    method: "get",
    params: query,
  });
}

// 查询PDF详细
export function getPdf(pdfId) {
  return request({
    url: "/system/pdf/" + pdfId,
    method: "get",
  });
}

// 新增
export function addPdf(data) {
  return request({
    url: "/system/pdf",
    method: "post",
    data: data,
  });
}

// 修改
export function updatePdf(data) {
  return request({
    url: "/system/pdf",
    method: "put",
    data: data,
  });
}

// 删除
export function delPdf(pdfId) {
  return request({
    url: "/system/pdf/" + pdfId,
    method: "delete",
  });
}
